//
//  TLChengYuPageView.m
//  Books
//
//  Created by tao故乡的云 on 2017/3/16.
//  Copyright © 2017年 故乡的云. All rights reserved.
//

#import "TLChengYuPageView.h"

@interface TLChengYuPageView ()
//@property (weak, nonatomic) IBOutlet UIImageView *bgImageView;
@property (weak, nonatomic) IBOutlet UILabel *pinYin;
@property (weak, nonatomic) IBOutlet UILabel *zhuShi;
@property (weak, nonatomic) IBOutlet UILabel *liJu;
@property (weak, nonatomic) IBOutlet UITextView *dianGu;

@end

@implementation TLChengYuPageView
+ (instancetype)shengYuPageView {
    return [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil] lastObject];
}



- (void)setChengYu:(TLChengYu *)chengYu {
    _chengYu = chengYu;
    self.dianGu.contentOffset = CGPointMake(0, -10);
    
    _pinYin.text = chengYu.pinYin;
    _zhuShi.text = chengYu.zhuShi;
    _liJu.text = chengYu.liJu;
    _dianGu.text = chengYu.dianGu;
    
}



@end
